                <tr class="">
                    <td class="pro pl15">
                        <div class="c_img c_img50"><a href="<?php echo Yii::app()->createUrl('home/product/detail',array('id'=>$data->zp_id));?>" title=""><img width="50" src="<?php echo $data->zp_pic; ?>" alt="<?php echo $data->zp_name; ?>" /></a></div>
                        <p class="title_pro line_18"><a class="c_06c" href="<?php echo Yii::app()->createUrl('home/product/detail',array('id'=>$data->zp_id));?>" title=""><?php echo $data->zp_name; ?></a></p>
                    </td>
                    <td><?php echo Company::createCompanyLinkByProid($data->zp_id);?></td>
                    <?php if(in_array($data->zp_id,$ids)){ ?>
                    <td id="recommended<?php echo $data->zp_id;?>"><span class="c_f60 d_b">已推荐</span><button onclick="unRecommend(<?php echo Yii::app()->request->getParam('zpoid'); ?>,<?php echo $data->zp_id; ?>)" title="取消推荐">取消推荐</button></td>
                    <td id="recommend<?php echo $data->zp_id;?>" class="d_n"><button onclick="recommend(<?php echo Yii::app()->request->getParam('zpoid'); ?>,<?php echo $data->zp_id; ?>,<?php echo $type; ?>)" title="推荐">推荐</button></td>
                    <?php }else{ ?>
                    <td id="recommended<?php echo $data->zp_id;?>" class="d_n"><span class="c_f60 d_b">已推荐</span><button onclick="unRecommend(<?php echo Yii::app()->request->getParam('zpoid'); ?>,<?php echo $data->zp_id; ?>)" title="取消推荐">取消推荐</button></td>
                    <td id="recommend<?php echo $data->zp_id;?>"><button onclick="recommend(<?php echo Yii::app()->request->getParam('zpoid'); ?>,<?php echo $data->zp_id; ?>,<?php echo $type; ?>)" title="推荐">推荐</button></td>
                    <?php } ?>
                </tr>